<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/js.vue.js"></script>
</head>
<body>
    <div id="app">
        <hello class="aca"></hello>
        <!--如果有多个继承对象必须指定-->
    </div>
    <script>
    let app=Vue.createApp({
        data(){
            return{

            }
           
        },
        components:{
            hello:{
                //  inheritAttrs: false,
                 //继承禁用
                template:`
                          <h1 v-bind="$attrs">凤雏</h1>
                          <h2 v-bind="$attrs">卧龙</h2>
                `
            }
        }
    });
    app.mount("#app")
    </script>
</body>
</html>